"use strict";
class People {
    // 受保护的 只能在自己和子类里使用 在实例中不能用
    constructor(name) {
        this.name = name;
    }
    say() {
        console.log(this.name + "saysaysay");
    }
}
class Man extends People {
    constructor(name) {
        super(name);
    }
    run() {
        console.log(this.name + "runrunrun");
    }
}
let liuju = new Man("刘举");
liuju.say();
// console.log(liuju.name)
let xiaoming = new People("1111");
let xiaoli = new People("xiaoming");
